package br.inf.solutions.apresentacoes.ssp.view.composer.basicforms;

import org.springframework.context.annotation.Scope;

import br.com.vexillum.util.ReflectionUtils;
import br.com.vexillum.util.SpringFactory;
import br.inf.solutions.apresentacoes.ssp.control.basics.CriterionPromotionController;
import br.inf.solutions.apresentacoes.ssp.model.basics.CriterionPromotion;

@SuppressWarnings("serial")
@org.springframework.stereotype.Component
@Scope("prototype")
public class CriterionPromotionComposer extends BasicFormsComposer<CriterionPromotion, CriterionPromotionController> {

	@Override
	protected String getUpdatePage() {
		return "/paginas/criteriopromocao/modalCadastrar.zul";
	}

	@Override
	public CriterionPromotionController getControl() {
		return SpringFactory.getController("criterionPromotionController", CriterionPromotionController.class, ReflectionUtils.prepareDataForPersistence(this));
	}

	@Override
	public CriterionPromotion getEntityObject() {
		return new CriterionPromotion();
	}
}
